#!/usr/bin/env bash

name=zipkin-server-1.0-SNAPSHOT.jar
#如果应用正在运行中，则中止应用
pid=$(ps -ef |grep -v 'grep'| grep java |grep $name  |awk '{print $2}')

if [ "X$pid" != "X" ]
then
 echo "结束进程 pid=$pid"
 kill -9 $pid
fi
sleep 3s

exit